package MainPanels;

import java.awt.*;
import javax.swing.*;

/*
 * This panel appears on the left side of the 'MainForm' after the user has clicked on the 'Book Flight'
 * -Button contained on the 'Taskpanel'. It contains the textfields needed to get the informations from 
 * the user in order to show a searched flight.
 */

public class BookFlightPanel extends JPanel {

	public BookFlightPanel()
	{
		this.setBackground(Color.LIGHT_GRAY);			// just for test purposes
		this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
		
		addSearchParamPanels();
	}
	
	private void addSearchParamPanels()
	{
		this.add(Box.createVerticalStrut(50));
		this.add(new SearchParameterPanel("Departure Location: "));
		this.add(new SearchParameterPanel("Arrival Location: "));
		this.add(new SearchParameterPanel("Date of Departure: "));
		this.add(new SearchParameterPanel("Maximum Price: "));
		this.add(new SearchParameterPanel("Class: "));
		this.add(Box.createVerticalStrut(500));
	}
	
}
